package pl.edu.pw.polygen.db.dao;

import java.util.List;

import pl.edu.pw.polygen.beans.ProjectBean;
import pl.edu.pw.polygen.beans.UserBean;
import pl.edu.pw.polygen.db.dao.generic.GenericDao;
import pl.edu.pw.polygen.db.entieties.Project;

public interface ProjectDao extends GenericDao<Project, Long>{
	boolean isExisting(ProjectBean projectBean);
	
	ProjectBean createNewProject(ProjectBean projectBean);
	
	List<ProjectBean> findAllByUser(UserBean userBean);
	
	ProjectBean findProject(Long id);

	ProjectBean findProject(String projectName, Long userId);

	void delete(ProjectBean projectBean);

	ProjectBean saveProject(ProjectBean projectBean);
}
